home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / database / convert.zip / CONVERT.TXT next >
Text File  |  1994-06-29  |  13KB  |  381 lines

  1.  
  2.  
  3.  
  4.                ==Chess File and Database Conversions==
  5.                =======================================
  6.  
  7. Categories
  8. ==========
  9.  
  10.   ASCII formats
  11.  
  12.     1. NTR (Nunn's Text Reader format; ChessBase text format)
  13.     2. NIC (NiCBase Text format)
  14.     3. PGN (Portable Game Notation format)
  15.     4. all others
  16.  
  17.   Proprietary Database formats
  18.  
  19.     1. CBASE (ChessBase)
  20.     2. NBASE (NiCBase)
  21.     3. CASST (Chess Assistant)
  22.     4. all others
  23.  
  24.   Taking any point from items 1 to 3 of each list, it is possible to get
  25.   to all others.
  26.  
  27.  
  28. Samples of ASCII formats
  29. ========================
  30.  
  31. --NTR--
  32.  
  33.   Kramnik,V - Anand,V
  34.   Groningen PCA Qualifiers (11) 1993
  35.   1.d4 d5 2.c4 c6 3.cxd5 cxd5 4.Nf3 Nf6 5.Nc3 Nc6 6.Bf4 Bf5
  36.   7.e3 e6 8.Bd3 Bxd3 9.Qxd3 Bd6 10.Bxd6 Qxd6 11.0-0 1/2
  37.  
  38. --NIC--
  39.  
  40.   Keycode: SL 5.5
  41.   Source: Q94
  42.   White: Kramnik,Vladimir  Title: IGM  Elo: 2725
  43.   Black: Anand,Vishwanathan  Title: IGM  Elo: 2740
  44.   Place: Groningen PCA Qualifiers  Round: 11  Year: 1993
  45.   1.d4 d5 2.c4 c6 3.cd5 cd5 4.Nf3 Nf6 5.Nc3 Nc6 6.Bf4 Bf5
  46.   7.e3 e6 8.Bd3 Bd3 9.Qd3 Bd6 10.Bd6 Qd6 11.0-0 1/2
  47.   Info: Both qualified
  48.   Annotator: Kramnik/Anand
  49.  
  50. --PGN--
  51.  
  52.   [Event "PCA Qualifiers"]
  53.   [Site "Groningen, NED"]
  54.   [Date "1993.12.30"]
  55.   [Round "11"]
  56.   [White "Kramnik,V"]
  57.   [Black "Anand,V"]
  58.   [Result "1/2-1/2"]
  59.  
  60.   1. d4 d5 2. c4 c6 3. cxd5 cxd5 4. Nf3 Nf6 5. Nc3 Nc6 6. Bf4 Bf5
  61.   7. e3 e6 8. Bd3 Bxd3 9. Qxd3 Bd6 10. Bxd6 Qxd6 11. O-O 1/2-1/2
  62.  
  63. The three formats above can have a number of variations and hold
  64. additional fields. PGN, for one, can have more than 30 keyword fields but
  65. the seven above are always required in the order shown.
  66.  
  67. In NTR format, a "loaded" first-line header might look like this,
  68.  
  69.   Shipman,Joe (2354) - Anderson,C (2294) [B21]
  70.  
  71. In the above line, ratings have been included and the ECO (Encyclopedia
  72. of Chess Openings) code for a Morra Gambit.
  73.  
  74. And finally, some additional PGN fields:
  75.  
  76.   [WhiteElo "2354"]
  77.   [BlackElo "2294"]
  78.   [ECO "B21"]
  79.   [NIC "SI 48.2.1"]
  80.  
  81. Within chess notation itself between the various formats there are also
  82. some subtle differences. NIC format tends toward compact notation, often
  83. not indicating captures, e.g., 10.Bxd6 could, on option, be shown as Bd6.
  84. PGN mandates a promotion style of a8=Q while others allow a simple a8Q.
  85. Castling can be shown variously as 0-0 (zeros) or O-O (capital letters).
  86. Sometimes there must be a space after the period of a move number (PGN)
  87. and other times this is optional. These differences may seem
  88. insignificant but when it comes to computers they are the number-one
  89. reason for trouble during conversion runs!
  90.  
  91. Overview of Proprietary formats
  92. ================================
  93.  
  94. These cannot be shown in sample form since they are coded in binary. The
  95. principle reason for this is to reduce storage space and speed execution,
  96. but vendors also know it helps keep a "captive" audience. <g>
  97.  
  98. CBASE - ChessBase proprietary
  99. -----
  100. A downloaded, unzipped file of CBase games will always include at least
  101. two files, the larger having an extension of .CBF, and the smaller, an
  102. index, having .CBI. You may also find files with .CPO and .CKO extensions
  103. and possibly .DOC files. Unless you are using ChessBase, the only ones
  104. that are really necessary are .CBF & .CBI. In CBase, if an accompanying
  105. DOC file has the same filename as the .CBF and .CBI files, it will
  106. automatically display when that database is selected. A number of Forum
  107. library files include these DOC files referencing tournament
  108. cross-tables or general information on the file itself. You can also view
  109. the .DOC file with a text editor or word processor.
  110.  
  111. NBASE - NiCBase proprietary
  112. -----
  113. For NiCBase databases there are several files. First, the games and a set
  114. of game lengths are stored in files with .G30 and .I30 extensions,
  115. respectively. For a complete database, there is a .DBS file that lists
  116. all the other files of the database and their location; a .KEY file,
  117. which contains information about the games classifications; a file of
  118. positions, with .POS extension; and a pointer file, with .PTR extension.
  119. A valid database must have all 6 files. "Gamefiles" can be made with only
  120. .G30 and .I30 formats, however.
  121.  
  122. Why have a full database when you can have simpler gamefiles? Because a
  123. database can be used to classify new games, and information and position
  124. searches are much faster (for the same number of games!) in a full
  125. database. This point also applies to the other chess databases as well.
  126.  
  127. CASST - Chess Assistant proprietary
  128. -----
  129. Here there are 14 different files to make up a database! The largest, the
  130. .BGM extension, holds the game data and the .LIB holds library
  131. information--a list of player names and tournament (place) names. There
  132. has been little study so far of the internal structure of a CA db but a
  133. best guess would be that many of them are indexes to speed data
  134. searches--a strong point for CA. One will not encounter any CA files in
  135. the CIS libraries--or NiCBase files either for that matter--since the only
  136. proprietary format which is standard to the Chess Forum is CBase. So far
  137. no one has come up with any utility which will perform a direct
  138. conversion of a CA db to another format. The only method is to have CA
  139. print games in ASCII to a file and then convert to other formats from the
  140. ASCII (covered as cafilter, below).
  141.  
  142.  
  143. Conversion Cross-Table
  144. ======================
  145.  
  146.                 --------ASCII--------    ------Proprietary------
  147.  
  148. From       To:  NTR      NIC      PGN    CBASE    NBASE    CASST
  149. ----            ---      ---      ---    -----    -----    -----
  150.  
  151.   NTR            -        1        2        3        4        5
  152.   NIC            6        -        7        8        9       10
  153.   PGN           11       12        -       13       14       15
  154.  
  155.   CBASE         16       17       18        -       19       20
  156.   NBASE         21       22       23       24        -       25
  157.   CASST         26       27       28       29       30        -
  158.  
  159.  
  160. Conversion Items
  161. ----------------
  162. (All 'FORMATS' are in UPPER case; conversion 'utilities' are in lower case.
  163. A following section briefly describing each utility.)
  164.  
  165. (1)  NTR->chessu->NIC    (Macintosh utility ChessU)
  166.  
  167. (2)  NTR->normal->PGN    (Lib 5 freeware Normal.exe)
  168.  
  169. (3)  NTR->reader->CBASE  (Nunn's Text Reader.exe main program)
  170.  
  171. (4)  NTR->reader->CBASE->nicconvert->NBASE
  172.      (or) normal->PGN->cbascii->CBASE->nicconvert->NBASE
  173.  
  174. (5)  NTR->reader->CBASE->cb2ca->CASST
  175.      (or) normal->PGN->cbascii->CBASE->cb2ca->CASST
  176.  
  177. (6)  NIC->wrdmcr->NTR     (Lib 5 freeware MS/Word macro)
  178.      (or) nic2cb->NTR    (Lib 5 freeware DOS macro)
  179.      (or) chessu->NTR    (Mac)
  180.  
  181. (7)  NIC->wrdmcr/nic2cb->NTR->normal->PGN
  182.  
  183. (8)  NIC->wrdmcr/nic2cb->NTR->normal->PGN->cbascii->CBASE
  184.  
  185. (9)  NIC->wrdmcr/nic2cb->NTR->normal->PGN->cbascii->CBASE->nicconvert->NBASE
  186.  
  187. (10) NIC->wrdmcr/nic2cb->NTR->reader->CBASE->cb2ca->CASST
  188.      (or) wrdmcr/nic2cb->NTR->normal->PGN->cbascii->CBASE->cb2ca->CASST
  189.  
  190. (11) PGN->normal->NTR
  191.  
  192. (12) PGN->normal->NTR->(Mac)->chessu->NIC (requires two platforms)
  193.  
  194. (13) PGN->cbascii->CBASE
  195.      (or)->normal->NTR->reader->CBASE
  196.  
  197. (14) PGN->cbascii->CBASE->nicconvert->NBASE
  198.  
  199. (15) PGN->cbascii->CBASE->cb2ca->CASST
  200.      (or)->normal->NTR->reader->CBASE->cb2ca->CASST
  201.  
  202. (16) CBASE->print->NTR
  203.  
  204. (17) CBASE->nicconvert->NBASE->print->NIC
  205.  
  206. (18) CBASE->cbascii(export)->PGN
  207.  
  208. (19) CBASE->nicconvert->NBASE
  209.  
  210. (20) CBASE->cb2ca->CASST
  211.  
  212. (21) NBASE->print->NIC->wrdmcr/nic2cb->NTR
  213.       (or)->cbworld->CBASE->print->NTR
  214.       (or)->cbworld->CBASE->cbascii->PGN->normal->NTR
  215.  
  216. (22) NBASE->print->NIC
  217.  
  218. (23) NBASE->cbworld->CBASE->print->NTR->normal->PGN
  219.  
  220. (24) NBASE->cbworld->CBASE
  221.  
  222. (25) NBASE->nic2ca->CASST
  223.  
  224. (26) CASST->print->cafilter->PGN->normal->NTR
  225.  
  226. (27) CASST->print->cafilter->PGN->normal->NTR->(Mac)->chessu->NIC
  227.  
  228. (28) CASST->print->cafilter->PGN
  229.  
  230. (29) CASST->print->cafilter->PGN->cbascii->CBASE
  231.       (or)->print->cafilter->PGN->normal->NTR->reader->CBASE
  232.  
  233. (30) CASST->print->cafilter->PGN->cbascii->CBASE->nicconvert->NBASE
  234.  
  235.  
  236. Conversion Utilities